/* Copyright (c) 2009 Google Inc.
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *     http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package org.jessies.blogbaboon;

import e.util.*;
import java.awt.Font;

public class BlogBaboonPreferences extends Preferences {
  public static final String DEFAULT_USERNAME = "defaultUsername";
  public static final String EDITOR_FONT = "editorFont";
  public static final String HIDE_MOUSE_WHEN_TYPING = "hideMouseWhenTyping";
  
  protected String getPreferencesFilename() {
    return "~/.org.jessies.blogbaboon.BlogBaboon";
  }
  
  protected void initPreferences() {
    addPreference(DEFAULT_USERNAME, "", "Default Username");
    addPreference(EDITOR_FONT, new Font(GuiUtilities.getMonospacedFontName(), Font.PLAIN, 12), "Fixed font");
    addPreference(HIDE_MOUSE_WHEN_TYPING, Boolean.TRUE, "Hide mouse when typing");
  }
}
